package com.qpl.depression.cms.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qpl.depression.cms.entity.CategoryLevel;
import com.qpl.depression.cms.repository.CategoryLevelRepository;
import com.qpl.depression.cms.service.CategoryLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author qpl
 * @since 2021-05-16
 */
@Service
public class CategoryLevelServiceImpl extends ServiceImpl<CategoryLevelRepository, CategoryLevel> implements CategoryLevelService {

    @Autowired
    private CategoryLevelRepository categoryLevelRepository;


    @Override
    public List<CategoryLevel> getByName(String name, Long categoryId) {
        return categoryLevelRepository.getByName(name, categoryId);
    }
}
